Optimal. Leaf size=64 \[ \frac {\tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) (A c d-a B e)}{\sqrt {a} c^{3/2}}+\frac {\log \left (a+c x^2\right ) (A e+B d)}{2 c}+\frac {B e x}{c} \]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 64, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {774, 635, 205, 260} \begin {gather*} \frac {\tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) (A c d-a B e)}{\sqrt {a} c^{3/2}}+\frac {\log \left (a+c x^2\right ) (A e+B d)}{2 c}+\frac {B e x}{c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 260
Rule 635
Rule 774
Rubi steps
\begin {align*} \int \frac {(A+B x) (d+e x)}{a+c x^2} \, dx &=\frac {B e x}{c}+\frac {\int \frac {A c d-a B e+c (B d+A e) x}{a+c x^2} \, dx}{c}\\ &=\frac {B e x}{c}+(B d+A e) \int \frac {x}{a+c x^2} \, dx+\frac {(A c d-a B e) \int \frac {1}{a+c x^2} \, dx}{c}\\ &=\frac {B e x}{c}+\frac {(A c d-a B e) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {a} c^{3/2}}+\frac {(B d+A e) \log \left (a+c x^2\right )}{2 c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 65, normalized size = 1.02 \begin {gather*} -\frac {\tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) (a B e-A c d)}{\sqrt {a} c^{3/2}}+\frac {\log \left (a+c x^2\right ) (A e+B d)}{2 c}+\frac {B e x}{c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(A+B x) (d+e x)}{a+c x^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 147, normalized size = 2.30 \begin {gather*} \left [\frac {2 \, B a c e x + {\left (A c d - B a e\right )} \sqrt {-a c} \log \left (\frac {c x^{2} + 2 \, \sqrt {-a c} x - a}{c x^{2} + a}\right ) + {\left (B a c d + A a c e\right )} \log \left (c x^{2} + a\right )}{2 \, a c^{2}}, \frac {2 \, B a c e x + 2 \, {\left (A c d - B a e\right )} \sqrt {a c} \arctan \left (\frac {\sqrt {a c} x}{a}\right ) + {\left (B a c d + A a c e\right )} \log \left (c x^{2} + a\right )}{2 \, a c^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 59, normalized size = 0.92 \begin {gather*} \frac {B x e}{c} + \frac {{\left (B d + A e\right )} \log \left (c x^{2} + a\right )}{2 \, c} + \frac {{\left (A c d - B a e\right )} \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{\sqrt {a c} c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 78, normalized size = 1.22 \begin {gather*} \frac {A d \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{\sqrt {a c}}-\frac {B a e \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{\sqrt {a c}\, c}+\frac {A e \ln \left (c \,x^{2}+a \right )}{2 c}+\frac {B d \ln \left (c \,x^{2}+a \right )}{2 c}+\frac {B e x}{c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.15, size = 56, normalized size = 0.88 \begin {gather*} \frac {B e x}{c} + \frac {{\left (B d + A e\right )} \log \left (c x^{2} + a\right )}{2 \, c} + \frac {{\left (A c d - B a e\right )} \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{\sqrt {a c} c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.73, size = 75, normalized size = 1.17 \begin {gather*} \frac {B\,e\,x}{c}+\frac {A\,e\,\ln \left (c\,x^2+a\right )}{2\,c}+\frac {B\,d\,\ln \left (c\,x^2+a\right )}{2\,c}+\frac {A\,d\,\mathrm {atan}\left (\frac {\sqrt {c}\,x}{\sqrt {a}}\right )}{\sqrt {a}\,\sqrt {c}}-\frac {B\,\sqrt {a}\,e\,\mathrm {atan}\left (\frac {\sqrt {c}\,x}{\sqrt {a}}\right )}{c^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.73, size = 212, normalized size = 3.31 \begin {gather*} \frac {B e x}{c} + \left (\frac {A e + B d}{2 c} - \frac {\sqrt {- a c^{3}} \left (- A c d + B a e\right )}{2 a c^{3}}\right ) \log {\left (x + \frac {A a e + B a d - 2 a c \left (\frac {A e + B d}{2 c} - \frac {\sqrt {- a c^{3}} \left (- A c d + B a e\right )}{2 a c^{3}}\right )}{- A c d + B a e} \right )} + \left (\frac {A e + B d}{2 c} + \frac {\sqrt {- a c^{3}} \left (- A c d + B a e\right )}{2 a c^{3}}\right ) \log {\left (x + \frac {A a e + B a d - 2 a c \left (\frac {A e + B d}{2 c} + \frac {\sqrt {- a c^{3}} \left (- A c d + B a e\right )}{2 a c^{3}}\right )}{- A c d + B a e} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________